package com.yoso.shop.infrastructure.dao.user;

import com.yoso.base.infrastructure.dao.BaseMapper;
import com.yoso.shop.domain.user.ConsumerEntity;
import com.yoso.shop.domain.user.ConsumerEntityExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ConsumerEntityMapper extends BaseMapper<ConsumerEntity, ConsumerEntityExample> {
    @Override
    long countByExample(ConsumerEntityExample example);

    @Override
    int deleteByExample(ConsumerEntityExample example);

    @Override
    int deleteByPrimaryKey(String id);

    @Override
    int insert(ConsumerEntity record);

    @Override
    int insertSelective(ConsumerEntity record);

    @Override
    List<ConsumerEntity> selectByExample(ConsumerEntityExample example);

    @Override
    ConsumerEntity selectByPrimaryKey(String id);

    @Override
    int updateByExampleSelective(@Param("record") ConsumerEntity record, @Param("example") ConsumerEntityExample example);

    @Override
    int updateByExample(@Param("record") ConsumerEntity record, @Param("example") ConsumerEntityExample example);

    @Override
    int updateByPrimaryKeySelective(ConsumerEntity record);

    @Override
    int updateByPrimaryKey(ConsumerEntity record);
}